mips-force-nomadd4
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 27 Jan 2022 21:21:16 +0000 (21:21 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 27 Jan 2022 21:21:16 +0000 (21:21 +0000)
commit79dec4c1ff43c0d1b8c55c2d9bca15ab0f6d5139
treeb94a027145d476ae41a91e8671a5aab60b0e1eee
parent25177d26c35fc0b50f9e9a58c12fde48b4733ecc
mips-force-nomadd4

The MIPS port aims to support the Loongson 3 family of CPUs in addition
of the other MIPS CPUs. On the Loongson 3 family the MADD4 instructions
are fused, while they are not fused on the other MIPS CPUs. In order to
support both, we have to disabled those instructions.

For that, the patch below basically corresponds to the --with-madd4=no
used on the GCC side.

Gbp-Pq: Name mips-force-nomadd4.diff
clang/lib/Basic/Targets/Mips.h
llvm/lib/Target/Mips/Mips.td
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/lib/Target/Mips/MipsSubtarget.cpp